package com.springboot.cms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 文章标记路由表 主要记录文章id 所属的具体表
 */
@Entity
@Table(name = "tb_article_role")
public class ArticleRole implements Serializable{

    @Id
    @Column
    private String id;//文章id

    @Column(length = 2)
    private Integer flag;//表标记

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }
}
